


class DoNextDefine {
  static const String doNextTableName = "to_do_next_2";
  static const String doNextCreateSucNotify = "doNextCreateSucNotify";
  static const String doNextEditSucNotify = "doNextEditSucNotify";
}

enum DoNextMainTimeType {
  today(0),
  week(1),
  month(2),
  season(3),
  year(4),
  all(5),
  custom(6);

  final int value;
  const DoNextMainTimeType(this.value);
  /// 工具方法：通过 int 找对应的枚举
  static DoNextMainTimeType fromValue(int value) {
    return DoNextMainTimeType.values.firstWhere(
          (e) => e.value == value,
      orElse: () => DoNextMainTimeType.today, // 可换成 null
    );
  }
}

enum DoNextStatus{
  ing(0), //进行中
  finish(1), //完成
  del(2); //删除
  final int iValue;
  const DoNextStatus(this.iValue);
}

enum DoNextMainMenuAction{
  ing(0), //进行中
  finish(1), //完成
  del(2), //删除
  addOneDay(3),//延期一天
  copy(4);
  final int iValue;
  const DoNextMainMenuAction(this.iValue);
}
